package com.ftg.learn.back.pattern.singleton;

/**
 * @author kangjx
 * @createTime 2022/9/1
 */
public class Play {

    public static void main(String[] args) {
//        LearnSingleton l = LearnSingleton.getSingletonInstance();
//        LearnSingleton l1 = LearnSingleton.getSingletonInstance();
//        LearnSingleton l2 = LearnSingleton.getSingletonInstance();
//
//        System.out.println(l == l1);

//        LearnSingleton1 ls1 = LearnSingleton1.getSingletonInstance();
//        LearnSingleton1 ls2 = LearnSingleton1.getSingletonInstance();
//        LearnSingleton1 ls3 = LearnSingleton1.getSingletonInstance();
//        LearnSingleton1 ls4 = LearnSingleton1.getSingletonInstance();


        LearnSingleton3 s1 = LearnSingleton3.getSingletonInstance();
        LearnSingleton3 s2 = LearnSingleton3.getSingletonInstance();
        LearnSingleton3 s3 = LearnSingleton3.getSingletonInstance();
        LearnSingleton3 s4 = LearnSingleton3.getSingletonInstance();
    }

}
